package com.sunjian.service.impl;

import com.sunjian.dao.db1.UserDao;
import com.sunjian.entity.User;
import com.sunjian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public List<User> queryALLUser() {
        return userDao.queryALLUser();
    }

    @Override
    public User findUserByName(int id) {
        return userDao.findUserByName(id);
    }
}
